﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="interestedProfile.ascx.cs" Inherits="VISS.Web.Frontend.Modules.User.Profile.InterestedProfileControl" %>

<% if (Display) {%>
    <div id="interested-profile">
        <div class="brd-list" id="interested-profile-list">
            <h2 class="header">Hồ sơ quan tâm</h2>
            <% if (InterestedProfiles != null && InterestedProfiles.Count > 0) {
                   for (int i = 0; i < InterestedProfiles.Count; i++) { %>
                <div class="profile" id="profile-<%=InterestedProfiles[i].FollowedUserKey %>">
                    <div class="left">
                        <a href="/profile?u=<%=InterestedProfiles[i].FollowedUserKey %>"><img class="avatar" src="<%=VISS.Web.Frontend.AvatarUtils.GetAvatarThumbPath(InterestedProfiles[i].AvatarFileName, InterestedProfiles[i].AvatarImageStoreID, InterestedProfiles[i].Gender, InterestedProfiles[i].AvatarStatus) %>" /></a>
                        <div class="border">
                            <img src="<%=AppSettings.ResourcesPath %>/images/border-avatar.jpg" />
                        </div>
                    </div>
                    <div class="middle">
                        <div class="row">
                            <a class="name" href="/profile?u=<%=InterestedProfiles[i].FollowedUserKey %>"><%=InterestedProfiles[i].Name%></a>
                        </div>
                        <div class="row"><%=InterestedProfiles[i].Age%> Tuổi</div>
                        <div class="row"><%=InterestedProfiles[i].Job%></div>
                        <div class="row"><%=InterestedProfiles[i].City%></div>
                        
                        <%--<% if (((VISS.API.Users.EvtNoelUserFollowerEnt)InterestedProfiles[i]).GoOut) { %>
                            <div class="noel-item">
                                <img src="<%=AppSettings.ResourcesPath %>/images/icon-tet.png" title="<%=InterestedProfiles[i].Name %> đang tìm bạn cùng đi chơi Tết" />
                            </div>
                        <% } %>--%>
                    </div>
                    <div class="right">
                        <input name="btnDeleteFollow" type="button" class="delete-follow delete-follow-off" onclick="DeleteFollow('<%=InterestedProfiles[i].FollowedUserKey %>');" title="Xóa khỏi danh sách quan tâm" />
                    </div>
                </div>
                <% } %>
                <input type="hidden" id="FollowedCount" value="<%=InterestedProfiles.Count %>" />
            <% }
               else { %>
                   <div class="empty">Bạn chưa có hồ sơ quan tâm</div>
               <% } %>
        </div>
    </div>
<% } %>
